"""
diffMat = tile(inX, (dataSetSize,1))-dataSet
"""
from numpy import *


print(tile([1,2],(3,4)))
"""
np.tile
函数作用是按照某个方向复制元素 
 
[[1 2 1 2 1 2 1 2]
 [1 2 1 2 1 2 1 2]
 [1 2 1 2 1 2 1 2]]
 """
# 等价语法
p =   [1, 2]  - tile([0.1, 2], (3, 1))
print(p)
# 数据集汇总： http://archive.ics.uci.edu/ml/index.php



